package com.ruoyi.park.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 物资管理对象 omp_wy_material_management
 *
 * @author cjie
 * @date 2021-07-22
 */
@Data
@ApiModel
public class WyMaterialManagement extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** Id */
    @ApiModelProperty(value = "Id")
    private String id;

    /** 入库|出库时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "入库|出库时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "入库|出库时间")
    private Date inOutTime;

    /** 部门Id */
    @Excel(name = "部门Id")
    @ApiModelProperty(value = "部门Id")
    private String deptId;

    /** 入库|出库人 */
    @Excel(name = "入库|出库人")
    @ApiModelProperty(value = "入库|出库人")
    private String inOutUser;

    /** 物资名称 */
    @Excel(name = "物资名称")
    @ApiModelProperty(value = "物资名称")
    private String material;

    /** 规格型号 */
    @Excel(name = "规格型号")
    @ApiModelProperty(value = "规格型号")
    private String specification;

    /** 单位 */
    @Excel(name = "单位")
    @ApiModelProperty(value = "单位")
    private String unit;

    /** 数量 */
    @Excel(name = "数量")
    @ApiModelProperty(value = "数量")
    private Long amount;

    /** 单价 */
    @Excel(name = "单价")
    @ApiModelProperty(value = "单价")
    private BigDecimal unitPrice;

    /** 总计金额 */
    @Excel(name = "总计金额")
    @ApiModelProperty(value = "总计金额")
    private BigDecimal totalPrice;

    /** 用途 */
    @Excel(name = "用途")
    @ApiModelProperty(value = "用途")
    private String purpose;

    /** 类型(0入库,1出库) */
    @Excel(name = "类型(0入库,1出库)")
    @ApiModelProperty(value = "类型(0入库,1出库)")
    private String type;

    /** 删除标志(0正常 1删除) */
    @ApiModelProperty(value = "删除标志(0正常 1删除)")
    private String delFlag;

    /** 租户Id */
    @Excel(name = "租户Id")
    @ApiModelProperty(value = "租户Id")
    private String tenantId;

    //以下属性为页面视图属性
    /** 部门名称 */
    @Excel(name = "部门名称")
    @ApiModelProperty(value = "部门名称")
    private String deptName;
}
